package com.jl.jlapp.utils;

import android.app.Activity;
import android.content.Context;
import android.widget.Toast;

import com.jl.jlapp.mvp.base.MyApplication;

/**
 * Created by Administrator on 2016/6/2 0002.
 */
public class ToastUtils {
    private static Toast toast;
    public static void show(String msg){
        if(toast == null){
            toast = Toast.makeText(MyApplication.getInstance(),msg, Toast.LENGTH_SHORT);
        }else{
            toast.setText(msg);
        }
        toast.show();
    }
}
